import VueRouter from 'vue-router'
import home from './component/home/home.vue'
import gowz from './component/shequ/wz.vue'
import wzinfo from './component/shequ/wzinfo.vue'
import shop from './component/shopping/shop.vue'
import bbinfo from './component/shopping/bbinfo.vue'
import shopcar from './component/shopping/shopcar.vue'
import login from './component/login_re/login.vue'
import register from './component/login_re/register.vue'
var router = new VueRouter({
    routes:[
        { path :'/',redirect:'/home'},
        { path :'/home',component:home},
        { path :'/home/gowz',component:gowz},
        { path :'/home/wzinfo/:id',component:wzinfo},
        { path :'/home/shop',component:shop},
        { path :'/home/shopcar',component:shopcar},
        { path :'/home/bbinfo/:id',component:bbinfo,name:'bbinfo'},
        { path :'/home/login',component:login},
        { path :'/home/register',component:register},
    ]
    
})









export default router